import { Controller, Get } from '@nestjs/common'
import { ResultData } from './config/constants/ResultData'
import { Authorize } from './config/decorator/authorize.decorator'

@Controller('/test')
export class AppController {
  constructor() { }

  @Authorize()
  @Get('/1')
  getHello() {
    return ResultData.ok({ msg: '请弹窗', data: {} })
  }



  @Authorize()
  @Get('/2')
  two() {
    return ResultData.ok({ msg: '请求成功', data: {} })
  }
}
